package com.molichuxing.services.infrastructure.bean;

import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class AccountDealerBean extends RootBean {
    /**
     * id id
     */
    private Integer id;

    /**
     * 用户id account_id
     */
    private Integer accountId;

    /**
     * 经销商id dealer_id
     */
    private Integer dealerId;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 更新时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * permission_account_dealer
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     * @date 2019-09-20 15:08:21
     * @return id id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     * @date 2019-09-20 15:08:21
     * @param id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户id
     * @date 2019-09-20 15:08:21
     * @return account_id 用户id
     */
    public Integer getAccountId() {
        return accountId;
    }

    /**
     * 用户id
     * @date 2019-09-20 15:08:21
     * @param accountId 用户id
     */
    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    /**
     * 经销商id
     * @date 2019-09-20 15:08:21
     * @return dealer_id 经销商id
     */
    public Integer getDealerId() {
        return dealerId;
    }

    /**
     * 经销商id
     * @date 2019-09-20 15:08:21
     * @param dealerId 经销商id
     */
    public void setDealerId(Integer dealerId) {
        this.dealerId = dealerId;
    }

    /**
     * 创建时间
     * @date 2019-09-20 15:08:21
     * @return gmt_create 创建时间
     */
    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 创建时间
     * @date 2019-09-20 15:08:21
     * @param gmtCreate 创建时间
     */
    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 更新时间
     * @date 2019-09-20 15:08:21
     * @return gmt_modified 更新时间
     */
    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
     * 更新时间
     * @date 2019-09-20 15:08:21
     * @param gmtModified 更新时间
     */
    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AccountDealerBean other = (AccountDealerBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
                && (this.getDealerId() == null ? other.getDealerId() == null : this.getDealerId().equals(other.getDealerId()))
                && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
                && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
        result = prime * result + ((getDealerId() == null) ? 0 : getDealerId().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", accountId=").append(accountId);
        sb.append(", dealerId=").append(dealerId);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}